package com.zhiyou100.extendsDemo3;

public class Test {

    public static void main(String[] args) {

        Ball ball = new Ball();
        ball.radius = 2;
        double area = ball.getArea();
        System.out.println("area = " + area);
    }

}
